package com.cloud.core.db.entity;

import com.cloud.core.db.BaseEntity;

/**
* code generate
*/
public class UserOrderEntity extends BaseEntity {

    private String orderSn ;//订单流水号 
    private Integer orderState ;//订单状态 0 未处理       100 已经付款     200 订单已退款 （中间预留了 状态给具体需求） 
    private String orderSnapshot ;//订单快照 （订单的详细信息，包括购买商品信息和 购买地址等）  为了后面统计 金额还从新冗余下
    private Long orderPrice ;//订单金额 单位 分
    private Long couponPrice ;//优惠券金额
    private Long pmsPrice ;//活动金额
    private Long redEnvelopePrice ;//口令红包金额


    public String getOrderSn(){
        return this.orderSn;
    }

    public void setOrderSn(String orderSn){
        this.orderSn=orderSn;
    }

    public Integer getOrderState(){
        return this.orderState;
    }

    public void setOrderState(Integer orderState){
        this.orderState=orderState;
    }

    public String getOrderSnapshot(){
        return this.orderSnapshot;
    }

    public void setOrderSnapshot(String orderSnapshot){
        this.orderSnapshot=orderSnapshot;
    }

    public Long getOrderPrice(){
        return this.orderPrice;
    }

    public void setOrderPrice(Long orderPrice){
        this.orderPrice=orderPrice;
    }

    public Long getCouponPrice(){
        return this.couponPrice;
    }

    public void setCouponPrice(Long couponPrice){
        this.couponPrice=couponPrice;
    }

    public Long getPmsPrice(){
        return this.pmsPrice;
    }

    public void setPmsPrice(Long pmsPrice){
        this.pmsPrice=pmsPrice;
    }

    public Long getRedEnvelopePrice(){
        return this.redEnvelopePrice;
    }

    public void setRedEnvelopePrice(Long redEnvelopePrice){
        this.redEnvelopePrice=redEnvelopePrice;
    }

    @Override
    public Class getInfoClass() {
        return UserOrderEntity.class;
    }

    @Override
    public String getTableName() {
        return "user_order";
    }
}